package cn.kane.visitor;

import java.util.Collection;

public class ConCreateVisitor implements IVisitor {

	@Override
	public void stringVisitor(IElement em) {
		System.out.println("STRING-VISITOR:"+em.getValue());
	}

	@Override
	public void numberVisitor(IElement em) {
		System.out.println("NUMBER-VISITOR:"+em.getValue());
	}

	@Override
	public void collectionVisitor(Collection<IElement> ems) {
		System.out.println("COLLECTION-VISITOR");
			for(IElement em : ems){
				em.accept(this);
			}
	}

}
